﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace CoreCms.Net.DTO.ComponentsDTO
{
    /// <summary>
    /// 商品列表中需要的字段
    /// </summary>
    public class GoodListDTO
    {
        public GoodListDTO()
        {
        }

        /// <summary>
        ///     商品ID
        /// </summary>
        public int id { get; set; }

        /// <summary>
        ///     商品名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        ///     商品简介
        /// </summary>
        public string brief { get; set; }

        /// <summary>
        ///     缩略图
        /// </summary>
        public string image { get; set; }

        /// <summary>
        ///     视频
        /// </summary>
        public string video { get; set; }

        /// <summary>
        ///     商品分类
        /// </summary>
        public int goodsCategoryId { get; set; }

        /// <summary>
        ///     商品类别
        /// </summary>
        public int goodsTypeId { get; set; }

        /// <summary>
        ///     品牌
        /// </summary>
        public int brandId { get; set; }

        /// <summary>
        ///     是否虚拟商品
        /// </summary>
        public bool isNomalVirtual { get; set; }

        /// <summary>
        ///     商品单位
        /// </summary>
        public string unit { get; set; }

        /// <summary>
        ///     评论次数
        /// </summary>
        public int commentsCount { get; set; }

        /// <summary>
        ///     浏览次数
        /// </summary>
        public int viewCount { get; set; }

        /// <summary>
        ///     购买次数
        /// </summary>
        public int buyCount { get; set; }

        /// <summary>
        ///     商品排序
        /// </summary>
        public int sort { get; set; }

        /// <summary>
        ///     标签id逗号分隔
        /// </summary>
        public string labelIds { get; set; }

        /// <summary>
        ///     创建时间
        /// </summary>
        public DateTime? createTime { get; set; }

        /// <summary>
        ///     是否推荐
        /// </summary>
        public bool isRecommend { get; set; }

        /// <summary>
        ///     是否热门
        /// </summary>
        public bool isHot { get; set; }

        /// <summary>
        ///     初始销量
        /// </summary>
        public int initialSales { get; set; }


        /// <summary>
        /// 货品价格
        /// </summary>
        public System.Decimal price { get; set; }

        /// <summary>
        /// 货品市场价
        /// </summary>

        public System.Decimal mktprice { get; set; }


        /// <summary>
        /// 积分可抵扣金额
        /// </summary>
        public System.Decimal pointsDeduction { get; set; }


        /// <summary>
        /// 赠送积分
        /// </summary>
        public System.Int32 points { get; set; }


        /// <summary>
        /// 重量(千克)
        /// </summary>
        public System.Decimal weight { get; set; }


        /// <summary>
        /// 库存
        /// </summary>
        public System.Int32 stock { get; set; }


        /// <summary>
        /// 是否参与营销（优惠券，满减，秒杀，团购）
        /// </summary>
        public bool isInActivity { get; set; }

    }
}
